package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.CountryArea;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CountryAreaRepository extends JpaRepository<CountryArea, Long> {

    void deleteCountryAreaByIdIn(List<Long> ids);

    List<CountryArea> findAllByNameEnEquals(String nameEn);
    List<CountryArea> findAllByNameEquals(String name);

    List<CountryArea> findAllByCodeEquals(String code);

    CountryArea queryByLanguageIdEquals(Long languageId);

    List<CountryArea> queryByStateEquals(Integer state);
}
